#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@author: KevinQi
@file: base_response.py
@time: 2023/12/25 15:30
@desc: 生蛋快乐
"""


def SuccessResponse(data=None, code=200, msg="success", status="success"):
    if data is None:
        data = []
    return_data = {
        "data": data,
        "code": code,
        "msg": msg,
        "status": status,
    }
    return return_data


def ErrorResponse(data=None, code=201, msg="error", status="error"):
    if data is None:
        data = []
    return_data = {
        "data": data,
        "code": code,
        "msg": msg,
        "status": status,
    }
    return return_data
